package com.nf.health.app.activity.home.view;

import android.content.Context;
import android.view.LayoutInflater;
import android.widget.EditText;
import android.widget.LinearLayout;

import com.nf.health.app.activity.home.bean.SatisfactionSurveyQuestionBean;


/**
 * Created by he_pan on 2017/4/12.
 * The only genius that is worth anything is the genius for hard work
 *
 * @author he_pan
 * @Description 基类 初始化一些类,限定一些方法
 */

public abstract class BaseSelectView extends LinearLayout {

    protected LayoutInflater inflater;
    protected Context context;
    protected SatisfactionSurveyQuestionBean bean;
    protected int position;

    protected EditText etAdvice;

    public BaseSelectView(Context context, SatisfactionSurveyQuestionBean bean, int position) {
        super(context);
        this.context = context;
        this.bean = bean;
        this.position = position;
        inflater = LayoutInflater.from(context);
        initView();
        setUpView();
    }

    protected abstract void initView();

    protected abstract void setUpView();

    public abstract String getPosition();

    public abstract String getSurveyAnswer();

}
